package org.dream.util;
/** 
 * 提供将原始数字类型转换为相应的对象的方法. 
 * @author Turbo Chen 
 */
public class Primary2ObjectUtil {

	public static Double[] Doulbe2Object(double[] d) {
		Double[] dObj = new Double[d.length];
		for (int i = 0; i < d.length; i++)
			dObj[i] = new Double(d[i]);

		return dObj;
	}

	public static Integer[] Integer2Object(int[] i) {
		Integer[] iObj = new Integer[i.length];
		for (int j = 0; j < i.length; j++)
			iObj[j] = new Integer(i[j]);

		return iObj;
	}

}
